<!DOCTYPE html>
<html>
<head>

  <title>Layui</title>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="layui/css/layui.css">
  <!-- <script src="js/jquery-1.4.1.min.js" type="text/javascript"></script> -->
  <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>

<body >
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>其他主题</legend>
</fieldset>
 
<div class="layui-btn-container" id="content">
</div>

<!-- <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  <legend>动漫</legend>
</fieldset>
 
<div class="layui-btn-container" id="content2">
   <a href="https://www.312518.xyz/cb/1.php"  class='layui-btn layui-btn-normal'>一区</a>
   <a href=""  class='layui-btn layui-btn-normal'></a>
</div> -->

<script src="layui/layui.js" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述 JS 路径需要改成你本地的 -->
</body>


<script language="javascript" type="text/javascript">


  $(function () {

      var htmlobj = $.ajax({ url: "res/info.txt", async: false });

      var v = htmlobj.responseText;
      var arrs = v.split("\r\n");
      for (var i = 0; i < arrs.length; i++) {
        if(arrs[i].includes("info.txt")||arrs[i].includes("run.bat")){
            console.log(arrs[i]);
        }else{
          //这里访问的是1级目录路径
          $("#content").append("<a href='\a.html?path=" + arrs[i] + "' class='layui-btn layui-btn-normal'>" + arrs[i] + "</a>");
        }
      }

  })
</script>

</html>